/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-07-21
 * Time: 0:20
 */
//模拟实现堆
public class Test {
    public static void main(String[] args) {
        PriorityQueues d=new PriorityQueues();
        int[] arr={1,3,6,7,9,15};
        d.createHeap(arr);
        System.out.print("初始化: ");
        d.print();
        d.push(25);
        d.push(13);
        System.out.print("插入25和13： ");
        d.print();
        d.pollHeap();
        System.out.print("删除25: ");
        d.print();
    }
}
